package com.java.test.agent.module.apply.entity;

import lombok.Data;
import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * 代理申请entity
 *
 * @author lijie1
 * @date 2020/6/30 0030
 */
@Data
public class AgentApplyEntity  implements RowMapper<AgentApplyEntity> {

    private Long id;//id
    private String name;//代理名称
    private String email;//邮件
    private String phone;//电话
    private String account;//账号
    private String createTime;//创建时间
    private int status;//状态


    @Override
    public AgentApplyEntity mapRow(ResultSet resultSet, int i) throws SQLException {
        AgentApplyEntity info = new AgentApplyEntity();
        info.setId(resultSet.getLong("id"));
        info.setStatus(resultSet.getInt("status"));
        info.setName(resultSet.getString("name"));
        info.setEmail(resultSet.getString("email"));
        info.setPhone(resultSet.getString("phone"));
        info.setCreateTime(resultSet.getString("createTime"));
        info.setAccount(resultSet.getString("account"));
        return info;
    }
}
